package Operation;

import Book.BookList;

//展示图书
public class ShowBook implements IOperation{

    @Override
    public void work(BookList bookList) {
        System.out.println("展示图书信息....");
        int count = bookList.getUsedSize();
        for (int i = 0; i < count; i++) {
            System.out.println(bookList.getBooks()[i].toString());
        }
    }
}
